package meijuli.com.join51.business.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 消息
 *
 * @author jack 2017-05-15 10:01
 */
public class Message implements Parcelable {
    private String crtime;
    private String dmId;
    private String extra;
    private String massge;
    private int msgStutas;
    private String note;
    private String receiveId;
    private String title;

    public Message() {}

    protected Message(Parcel in) {
        crtime = in.readString();
        dmId = in.readString();
        extra = in.readString();
        massge = in.readString();
        msgStutas = in.readInt();
        note = in.readString();
        receiveId = in.readString();
        title = in.readString();
    }

    public static final Creator<Message> CREATOR = new Creator<Message>() {
        @Override
        public Message createFromParcel(Parcel in) {
            return new Message(in);
        }

        @Override
        public Message[] newArray(int size) {
            return new Message[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(crtime);
        parcel.writeString(dmId);
        parcel.writeString(extra);
        parcel.writeString(massge);
        parcel.writeInt(msgStutas);
        parcel.writeString(note);
        parcel.writeString(receiveId);
        parcel.writeString(title);
    }

    public String getCrtime() {
        return crtime;
    }

    public void setCrtime(String crtime) {
        this.crtime = crtime;
    }

    public String getDmId() {
        return dmId;
    }

    public void setDmId(String dmId) {
        this.dmId = dmId;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getMassge() {
        return massge;
    }

    public void setMassge(String massge) {
        this.massge = massge;
    }

    public int getMsgStutas() {
        return msgStutas;
    }

    public void setMsgStutas(int msgStutas) {
        this.msgStutas = msgStutas;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(String receiveId) {
        this.receiveId = receiveId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
